<?php
if (!function_exists('add_action')) {
	function add_action($action) {
		if (!isset($_SESSION['Action'])) $_SESSION['Action'] = $action;
		else $_SESSION['Action'] .=  "|" . $action;
	}
}

function make_title($title='') {
	if (strlen($title)>0) {
		return "Colonial Calendar | $title";
	} else {
		return "Colonial Calendar | The GW Student Association";
	}
}


function is_dev() {
	if (isset($_COOKIE['dev-mode'])) return true;
	return false;
}

?>